package cn.iocoder.yudao.module.lfd.controller.admin.appointment.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Data
public class AppointmentForm extends PageParam {
    @Schema(description = "openid", example = "32597")
    private String openid;

    @Schema(description = "流水号")
    private String flowNo;

    @Schema(description = "店铺名字", example = "7484")
    private String shopName;

    @Schema(description = "状态", example = "2")
    private String status;

    @Schema(description = "理发师", example = "tony")
    private String nickName;
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate hairDate;
    @Schema(description = "排队号", example = "A001")
    private String number;

    private BigDecimal money;

    public Page<AppointmentForm> page() {
        return new Page<>(this.getPageNo(), this.getPageSize());
    }
}
